package com.auto.sns.honour.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.honour.domain.SnsHonourLevel;
import com.auto.sns.honour.dao.ISnsHonourLevelDAO;
import com.system.util.PersistUtil;
import com.auto.sns.honour.sql.sqlid.SnsHonourLevelSqlID;
/**
 * : t_auto_sns_honour_level
 * 
 * 
 * @author Gen
 */
public class SnsHonourLevelDAOImpl implements ISnsHonourLevelDAO{

	public SnsHonourLevel insertSnsHonourLevel(SnsHonourLevel bean){
		return PersistUtil.insert(bean, SnsHonourLevelSqlID.INSERT);
	}

	public boolean deleteSnsHonourLevel(String shleGuid){
		PersistUtil.delete(shleGuid, SnsHonourLevelSqlID.DELETE);
		return true;
	}	

	public SnsHonourLevel updateSnsHonourLevel(SnsHonourLevel bean){
		return PersistUtil.update(bean, SnsHonourLevelSqlID.UPDATE);
	}	

	public SnsHonourLevel loadSnsHonourLevel(String shleGuid){
		return PersistUtil.query(new SnsHonourLevel().getClass(), shleGuid);
	}

	public List<SnsHonourLevel> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsHonourLevelSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsHonourLevelSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
